package psn.qiuyiping.autocad.dxffile;

import java.util.ArrayList;
import java.util.List;

public class SectionImage extends Section {
    @DxfCode(90)
    int        length;
    List<Byte> sb = new ArrayList<>();

    public SectionImage() {
        super();
    }

    @DxfCode(310)
    public void readImageData(DxfProcessContext context, DxfData<List<Byte>> item) {
        sb.addAll(item.getVal());
    }

    @Override
    public void afterBlockEnd(DxfProcessContext context) {
        // TODO Auto-generated method stub
        super.afterBlockEnd(context);
        System.out.println("image size : " + sb.size());
        System.out.println("image length : " + length);
    }
}
